package cn.wildfirechat.model.entity;

import java.util.List;

public class Cart {



    //兼容下单
    public String leaveMsg = "";
    public int selfPick = 0;//0-配送、1-自提

    /**
     * shopId : 1
     * shopLogo :
     * shopName : 黑沙水泥
     * shoppingCartId : 1
     * shoppingCartItemList : [{"currentPrice":2399,"goodsId":3,"goodsName":"苹果铝材","goodsNum":3,"originalPrice":3000,"shoppingCartItemId":1},{"currentPrice":6666,"goodsId":4,"goodsName":"柳州钢材","goodsNum":1,"originalPrice":10000,"shoppingCartItemId":2}]
     * userId : 100000001
     */

    public int shopId;
    public String shopLogo;
    public String shopName;
    public int shoppingCartId;
    public int userId;
    public List<ShoppingCartItemListBean> shoppingCartItemList;

    public boolean itemAllSelect;

    /**
     * address : 科汇金谷科汇三街10号401
     * city : 广州市
     * district : 黄埔区
     * province : 广东省
     * shoppingCartItemList : [{"currentPrice":1,"goodsId":9,"goodsLogo":"/fs/2020/09/23/15/49640f03beeb44ba84b6012ed73d5d56.jpg","goodsName":"普通硅酸盐水泥","goodsNum":1,"goodsTurnPics":"/fs/2020/09/23/15/49640f03beeb44ba84b6012ed73d5d56.jpg","originalPrice":10000,"shoppingCartItemId":54}]
     */

    public String address;
    public String city;
    public String district;
    public String province;

    public static class ShoppingCartItemListBean {
        /**
         * currentPrice : 2399
         * goodsId : 3
         * goodsName : 苹果铝材
         * goodsNum : 3
         * originalPrice : 3000
         * shoppingCartItemId : 1
         */

        public int currentPrice;
        public int goodsId;
        public String goodsName;
        public int goodsNum;
        public int originalPrice;
        public int shoppingCartItemId;
        public String goodsLogo;

        public boolean selected;
        /**
         * invalid : 0
         * stock : 0
         */

        public int invalid;//0-正常、1-失效
        public int stock;
    }


    public static class /*自营店铺Bean*/goods {
        /**
         * id : 33
         * name : 水泥一号
         * logo : 无
         * description : 暂无介绍
         * number : 7
         * price : 135
         * goodId : 3
         * shopName : 自营店铺
         * shopId : 1
         * createDate : 1577331537000
         */

        public int id;
        public String name;
        public String logo;
        public String description;
        public int number;
        public String price;
        public int goodId;
        public String shopName;
        public int shopId;
        public long createDate;
        public boolean selected;

        /**
         * classifyUnit : 千克
         * classifyName : 水泥
         */

        public String classifyUnit;
        public String classifyName;
    }

}
